<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增报警统计信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-total-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">设备序号：</label>
                <div class="col-sm-8">
                    <input name="deviceId" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">设备编号：</label>
                <div class="col-sm-8">
                    <input name="deviceNum" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">紧急停机：</label>
                <div class="col-sm-8">
                    <input name="alarm1" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">二次过流：</label>
                <div class="col-sm-8">
                    <input name="alarm2" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">温度异常：</label>
                <div class="col-sm-8">
                    <input name="alarm3" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">输入过压：</label>
                <div class="col-sm-8">
                    <input name="alarm4" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">输入欠压：</label>
                <div class="col-sm-8">
                    <input name="alarm5" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">引弧异常：</label>
                <div class="col-sm-8">
                    <input name="alarm6" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">焊枪开关异常：</label>
                <div class="col-sm-8">
                    <input name="alarm7" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">电流检出异常：</label>
                <div class="col-sm-8">
                    <input name="alarm8" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">外部中断：</label>
                <div class="col-sm-8">
                    <input name="alarm9" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">内存异常：</label>
                <div class="col-sm-8">
                    <input name="alarm10" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">系统异常：</label>
                <div class="col-sm-8">
                    <input name="alarm11" class="form-control" type="text">
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">自定义异常12：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="alarm12" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">自定义异常13：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="alarm13" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">自定义异常14：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="alarm14" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">自定义异常15：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="alarm15" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">自定义异常16：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="alarm16" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">自定义异常17：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="alarm17" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">自定义异常18：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="alarm18" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">自定义异常19：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="alarm19" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">自定义异常20：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="alarm20" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否启用：</label>
                <div class="col-sm-8">
                    <input name="isValid" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "alarm/total"
        $("#form-total-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-total-add').serialize());
            }
        }
    </script>
</body>
</html>